package com.ruoyi.training.domain.vo;

import com.ruoyi.common.constant.training.CurriculumConstants;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

public class QuestionVO implements Serializable {

    /**
     * 题目id
     */
    private Long id;
    /**
     * 试卷id
     */
    private Long paperId;
    /**
     * 题干
     */
    private String problem;
    /**
     * 题型
     */
    private CurriculumConstants.TopicTypeEnum topicType;
    /**
     * 分值
     */
    private BigDecimal score;

    /**
     * 题目选项
     */
    private List<OptionVO> options;

    /**
     * 用户回答
     */
    private String answer;

    /**
     * 是否正确
     */
    private boolean correct;

    /**
     * 正确答案
     */
    private String correctAnswer;

    public QuestionVO() {
    }

    public QuestionVO(Long id, Long paperId, String problem, CurriculumConstants.TopicTypeEnum topicType, BigDecimal score) {
        this.id = id;
        this.paperId = paperId;
        this.problem = problem;
        this.topicType = topicType;
        this.score = score;
    }

    public List<OptionVO> getOptions() {
        return options;
    }

    public void setOptions(List<OptionVO> options) {
        this.options = options;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getPaperId() {
        return paperId;
    }

    public void setPaperId(Long paperId) {
        this.paperId = paperId;
    }

    public String getProblem() {
        return problem;
    }

    public void setProblem(String problem) {
        this.problem = problem;
    }

    public CurriculumConstants.TopicTypeEnum getTopicType() {
        return topicType;
    }

    public void setTopicType(CurriculumConstants.TopicTypeEnum topicType) {
        this.topicType = topicType;
    }

    public BigDecimal getScore() {
        return score;
    }

    public void setScore(BigDecimal score) {
        this.score = score;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public boolean isCorrect() {
        return correct;
    }

    public void setCorrect(boolean correct) {
        this.correct = correct;
    }

    public String getCorrectAnswer() {
        return correctAnswer;
    }

    public void setCorrectAnswer(String correctAnswer) {
        this.correctAnswer = correctAnswer;
    }
}
